package cn.edu.scau.cmi.huangxiyan.hibernate.domain;

import javafx.beans.property.SimpleStringProperty;

public class StudentModel {
	private final SimpleStringProperty id;
	private final SimpleStringProperty name;
	private final SimpleStringProperty teacher;

	public StudentModel(String id, String name, String teacher) {
		this.id = new SimpleStringProperty(id);
		this.name = new SimpleStringProperty(name);
		this.teacher = new SimpleStringProperty(teacher);
	}

	public String getId() {
		return id.get();
	}

	public void setId(String fName) {
		id.set(fName);
	}

	public String getName() {
		return name.get();
	}

	public void setName(String fName) {
		name.set(fName);
	}

	public String getTeacher() {
		return teacher.get();
	}

	public void setTeacher(String fName) {
		teacher.set(fName);
	}

}
